﻿<div class="topbar" id="topbar">
    <div class="container clearfix">
        <div class="backhome fl"><a href="javascript:void(0)" class='backhome-text'>回到首页</a></div>
        <div class="links fr">
            <ul class="clearfix">
                <li>
                    <a href="javascript:void(0)" class="link-login"><img src="/static/images/releasePic.png" class="link-l-pic" />企业名称</a>
                    <div class="link-list">
                        <p>赞助筹备</p>
                        <p>赞助合同</p>
                        <p>我的收藏</p>
                        <p>账户信息</p>
                    </div>
                </li>
                <li>
                    <a href="javascript:void(0)" class="link-login ml25"><img src="/static/images/releaseMessage.png" class="link-l-message" />消息</a>
                    <div class="link-list">
                        <p>系统消息</p>
                        <p>信息回复</p>
                    </div>
                </li>
                <li style="border: 0;">
                    <a href="javascript:void(0)" class="link-login">设置</a>
                    <div class="link-list">
                        <p>负责人信息</p>
                        <p>修改信息</p>
                        <p>修改密码</p>
                        <p>收款账号</p>
                        <p>退出登录</p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>
<div class="header">
    <div class="container">
        <div class="clearfix">
            <div class="logo fl"><img src="/static/images/logo.png" alt=""></div>
            <div class="type fl">
                <h2>企业中心</h2>
            </div>
            <!-- <div class="city fl"><span>广州</span><a href="javascript:void(0)">[切换城市]</a></div> -->
            <div class="search fr">
                <form action="">
                    <input type="text" placeholder="请输入高校名称">
                    <button type="submit"></button>
                </form>
            </div>
        </div>
    </div>
</div>
<script>

    var userType = common.GetUserType();

    CheckUser(userType);

    function Refresh() {
        CheckUser(userType);
    }

    function CheckUser(userType) {
        if (common.checkValue(userType)) {

            switch (userType) {
                case 1:
                    $("#spanName").html("企业名称");
                    $("#h2Name").html("企业");
                    break;
                case 3:
                    break;
            }

            $("#ulStudent").removeClass().show();
        }
        else {

            $("#ulUnlogin").removeClass().show();
        }
    }


    function Go() {
        location.href = "../search.html?sn=" + $("#txtName").val();
    }

    $('.link-login').on('click', function (e) {
        var self = $(this);
        self.parent().siblings().find('a').removeClass('on');
        self.toggleClass('on');
    });

</script>
